package com.example.comment.service;

import com.example.comment.pojo.Review;
import com.mongodb.client.result.DeleteResult;
import com.mongodb.client.result.UpdateResult;

import java.util.List;

/**
 * @author lenovo
 */
public interface ReviewService {
    List<Review> findAllReview();

    List<Review> findReviewByName(String username);

    List<Review> findReviewQueryByName(String username);

    Review addReview(Review review);

    UpdateResult updateReview(Review review);

    DeleteResult deleteReviewByName(String username);
}
